package org.imis.action;


import org.hibernate.SessionFactory;
import org.imis.dao.IUserDao;
import org.imis.daoimpl.UserDaoImpl;
import org.imis.domain.User;
import org.imis.service.UserManage;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LoginAction {
	private UserManage userManage;
	private String account;
	private String password;
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public UserManage getUserManage() {
		return userManage;
	}
	public void setUserManage(UserManage userManage) {
		this.userManage = userManage;
	}

	public String execute()
	{    
		
		System.out.println(account+"    "+password);
		System.out.println("kaishile");
		
		
			
			return userManage.loginCheck(account, password);
	
		
		
	
		
	}



}
